package indigo.mybatis;

import java.io.Serializable;

import com.google.common.base.MoreObjects;

import indigo.mybatis.entity.annotation.ResultEntity;
import indigo.mybatis.entity.annotation.ResultId;

@ResultEntity
public class Blog implements Serializable {
	private static final long serialVersionUID = 5915478019927535177L;

	@ResultId
	private Integer id;
	private String title;
	private String author;
	private String body;
	private Integer status;
	private Integer flag;

	@Override
	public String toString() {
		return MoreObjects.toStringHelper(this)
				.add("id", id)
				.add("title", title)
				.add("author", author)
				.add("body", body)
				.add("status", status)
				.toString();
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getBody() {
		return body;
	}

	public void setBody(String body) {
		this.body = body;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getFlag() {
		return flag;
	}

	public void setFlag(Integer flag) {
		this.flag = flag;
	}
}
